import tensorflow._api.v2.compat.v1 as tf

tf.disable_eager_execution()
mat1=tf.Variable([[1.0,2.0],[3.0,4.0]])
mat2=tf.Variable([[5.0,6.0],[7.0,8.0]])
new_mat2=tf.multiply(mat2,9)
update_mat2=tf.assign(mat2,new_mat2)
E=tf.eye(2)
update_E=tf.multiply(E,10)
sum1=tf.add(mat1,mat2)
finalsum=tf.subtract(sum1,update_E)
with tf.Session() as sees:
    sees.run(tf.global_variables_initializer())
    sees.run(update_mat2)
    sees.run(update_E)
    sees.run(sum1)
    print(sees.run(finalsum))
    print('吴棋凡')